home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / tasksel / tests / debconf next >
Text File  |  2008-10-10  |  589b  |  24 lines

  1. #!/bin/sh
  2. #
  3. # Allows a task to be enabled or disabled if tasksel is running inside a
  4. # debconf instance, as in the first stage Debian install.
  5. #
  6. # To enable this test insert your tasks stanza a keyword like:
  7. #
  8. # Test-debconf: false
  9. #
  10. # This will cause the task to be available only if tasksel is not running
  11. # in debconf.
  12.  
  13. if [ "$DEBIAN_HAS_FRONTEND" ] || [ "$DEBCONF_READFD" ]; then
  14.     if [ "$2" = true ]; then
  15.         exit 3 # display task, not marked for installation
  16.     fi
  17. else
  18.     if [ "$2" = false ]; then
  19.         exit 3 # display task, not marked for installation
  20.     fi
  21. fi
  22.  
  23. exit 1 # do not display task
  24.